package com.yenroc.invoice.pojo.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;

@XmlRootElement(name = "IssuItemInformation")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class IssuItemInformationXmlDTO {
    /**
     * 项目名称
     */
    @XmlElement(name = "ItemName")
    private String itemName;

    /**
     * 规格型号
     */
    @XmlElement(name = "SpecMod")
    private String specMod;

    /**
     * 单位
     */
    @XmlElement(name = "MeaUnits")
    private String meaUnits;

    /**
     * 数量
     */
    @XmlElement(name = "Quantity")
    private BigDecimal quantity;

    /**
     * 单价
     */
    @XmlElement(name = "UnPrice")
    private BigDecimal unPrice;

    /**
     * 金额
     */
    @XmlElement(name = "Amount")
    private BigDecimal amount;

    /**
     * 税率/征收率
     */
    @XmlElement(name = "TaxRate")
    private BigDecimal taxRate;

    /**
     * 税额
     */
    @XmlElement(name = "ComTaxAm")
    private BigDecimal comTaxAm;

    /**
     * 价税合计
     */
    @XmlElement(name = "TotaltaxIncludedAmount")
    private BigDecimal totaltaxIncludedAmount;

    /**
     * 税种分类代码
     */
    @XmlElement(name = "TaxClassificationCode")
    private String taxClassificationCode;
}
